﻿using System;
using System.Linq;
using UnityConfiguration.Infrastructure;
using System.Collections.Generic;

namespace UnityConfiguration
{
    public class Method : TypeResolvingCollection<Parameter>, ITypeConfigurationItem
    {
        public Method() : base() { 
        }

        public Method(IEnumerable<Parameter> list)
            : base(list) { 
        }

        public Parameter this[string name] { 
            get { return this.SingleOrDefault(p => p.Name == name); }
        }

    }
}
